public class ErlangIncorrectModuleNameInspection extends ErlangInspectionBase {
@NotNull
@Override
protected ErlangVisitor buildErlangVisitor(@NotNull final ProblemsHolder holder,
@NotNull LocalInspectionToolSession session) {
return new ErlangVisitor() {
@Override
public void visitModule(@NotNull ErlangModule o) {
String ext = FileUtilRt.getExtension(o.getContainingFile().getName());
String withoutExtension = FileUtil.getNameWithoutExtension(o.getContainingFile().getName());
String moduleName = StringUtil.replace(o.getName(), "'", "");